﻿using Fozzy.Object;

namespace Fozzy.Gedcom
{
    public abstract class Selection                                         : Fozzy.Object.Selection
    {
        #region [ Declarations ]
        #endregion

        #region [ States ]
            protected abstract bool         Be_with_LF                      { get ; }
        #endregion

        #region Structure
        #endregion

        #region [ Proprietes ]
        #endregion

        #region [ Constructeur ]
            public Selection(_Element element)                              : base(element)
            {}  
            public Selection(string name, _Element element)                 : base(element.Elements(name))
            {}  
        #endregion

            public override void Concatenate()
            {
                foreach (XNode node in Instances) node.Concatenate(Name, Be_with_LF)    ;
            }
    }
}
